﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace OA.Service.Model
{
    /// <summary>
    /// 获取用户菜单
    /// </summary>
    [System.Xml.Serialization.XmlRoot(XmlRootName)]
    public class GetUserMenuRequest : BaseReqeust<GetUserMenuResponse>
    {
        public GetUserMenuRequest()
            : base("GetUserMenu")
        {
        }

        /// <summary>
        /// 用户账号
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// 站点编号
        /// </summary>
        public string WebSiteCode { get; set; }

        /// <summary>
        /// 父菜单编号，为空获取顶层
        /// </summary>
        public string MenuCode { get; set; }
    }

    /// <summary>
    /// 用户菜单
    /// </summary>
    [System.Xml.Serialization.XmlRoot(XmlRootName)]
    public class GetUserMenuResponse : BaseResponse
    {
        /// <summary>
        /// 菜单
        /// </summary>
        public List<Data.Menu> Menus { get; set; }
    }
}